package com.cjc.sport.entity;

import java.io.Serializable;

/**
 * 表装返回对象
 */
public class ReturnJson implements Serializable {
    /**
     * 状态码
     */
    private int status;
    /**
     * 信息
     */
    private String msg;
    /**
     * 返回值
     */
    private Object result;
    /**
     * 总数
     */
    private long total;

    public ReturnJson() {
    }

    public ReturnJson(int status, String msg) {

        this.status = status;
        this.msg = msg;
    }

    public ReturnJson(int status, String msg, Object result) {
        this.status = status;
        this.msg = msg;
        this.result = result;
    }

    public ReturnJson(int status, String msg, Object result, long total) {
        this.status = status;
        this.msg = msg;
        this.result = result;
        this.total = total;
    }

    /**
     * get
     *
     * @return get
     */
    public int getStatus() {
        return status;
    }

    /**
     * set
     *
     * @param status set
     */
    public void setStatus(int status) {
        this.status = status;
    }

    /**
     * get
     *
     * @return get
     */
    public String getMsg() {
        return msg;
    }

    /**
     * set
     *
     * @param msg set
     */
    public void setMsg(String msg) {
        this.msg = msg;
    }

    /**
     * get
     *
     * @return get
     */
    public Object getResult() {
        return result;
    }

    /**
     * set
     *
     * @param result set
     */
    public void setResult(Object result) {
        this.result = result;
    }

    /**
     * get
     *
     * @return get
     */
    public long getTotal() {
        return total;
    }

    /**
     * set
     *
     * @param total set
     */
    public void setTotal(long total) {
        this.total = total;
    }

}
